package com.gonsin.gnews.example;

import com.gonsin.gnews.EnableGNews;
import com.gonsin.gnews.GNewsScan;
import com.gonsin.gnews.annotations.GNewsEnvironment;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("com.gonsin.gnews.example")
@SpringBootApplication
@EnableGNews
@GNewsScan
@MapperScan("com.gonsin.gnews.example")
public class Application {

    public static void main(String[] args) {

        GNewsEnvironment.LOG = true;

        SpringApplication.run(Application.class);
    }

}
